'use strict';

module.exports = appInfo => {
  const config = exports = {};

  // use for cookie sign key, should change to your own and keep security
  //   config.keys = appInfo.name + '_1519791589972_4938';

  // add your config here
  //   config.middleware = [ 'compress', 'json' ];
  config.json = {
    enable: false
  };
  config.apiServiceLocation = {
    'product': 'http://service.saas-product',
    'member': 'http://service.saas-member/',
    'order': 'http://service.saas-order',
    'shop': 'http://service.saas-shop/'
  };

  config.qiniu = {
    accessKey: 'WlqCue1bvLr5Z_XU_YK6Q4FSUqrX6XHsEJu3lcld',
    secretKey: 'HCbk5kQiHqIJxU59K4GeSoGVK3FvelCsAw1CM0i4',
    bucket: {
      subImg: {
        name: 'sub-images',
        host: 'http://sub-imgs.yundianshang.cc/',
        zone: 'z0'
      }
    }
  };

  config.cluster = {
    listen: {
      port: 3000,
      hostname: '0.0.0.0'
      // path: '/var/run/egg.sock',
    }
  };

  return config;
};
